package cn.wicking.mapper;

import cn.wicking.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface UserMapper {

    User getUserById(@Param("id")Integer id);
    Integer insertUser(User user);
    Integer updateUser(User user);
    Integer deleteUser(@Param("id") Integer id);

    //模糊查询
    List<User> getUserMessageAmbiguous(@Param("key") String key);

    List<User> getUserMessageByPage(HashMap<String,Object> map);

    List<User> gteUserByRowBounds();
}
